package com.easylinkin.linkappapi.grid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 二网格二维码使用记录
 *
 * @author 
 * @since 2024-05-27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("grid_qr_code_record")
public class GridQrCodeRecord implements Serializable{
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    /**
     * 二维码编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 网格id
     */
    @TableField(value = "grid_id")
    private String gridId;

    /**
     * 网格名称
     */
    @TableField(value = "grid_name")
    private String gridName;

    /**
     * 状态：0 开启使用 1：使用中 2：历史
     */
    @TableField(value = "status")
    private Integer status;

}
